//Delay.c
#include <REGX52.H>
#include <INTRINS.H>

void Delayms(unsigned int times)	//@11.0592MHz
{
	while(times--){
		unsigned char data i, j;
		i = 2;
		//j = 239;		//@12.000MHz
		j = 199;
		do
		{
			while (--j);
		} while (--i);
	}
}


void Delayus(unsigned int us)
{
	while(us--)
	{
		_nop_();
	}
}


void delay(unsigned int t)
{
	while(t--);
}
